package chapter3

import (
	"hello/chapter4"

	"github.com/gin-gonic/gin"
)

func Route(group *gin.RouterGroup) {
	//模板学习，局部路由
	group.GET("/template1", chapter4.Midware, Temp)

	//form 学习
	group.GET("/toform", ToForm)
	group.POST("/getform", PostForm)

	group.GET("/bindquery", BindQuery)

	group.GET("/tojson", ToJson)
	group.POST("/getjson", GetJson)

	//验证器
	group.GET("/tovalid", ToVAalid)
	group.POST("/getvalid", GetValid)
}
